package com.person.cloud.controller;

import com.person.common.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangfc
 * @date 2021/7/19 13:16
 */
@RestController
public class GoodsController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/getgoods")
    public CommonResult getGoods(){
        return CommonResult.ok(200,"获取成功",port);
    }
}
